import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import 'default-passive-events'
// 引入粒子背景
import VueParticles from 'vue-particles'
Vue.use(VueParticles)
// 引入时间格式
import moment from 'moment'
Vue.prototype.$moment = moment


// 引入messageBox 插件
import {MessageBox} from 'element-ui'

//导入全局样式表
import './assets/css/global.css'

import axios from 'axios'
//配置请求的根路径
axios.defaults.baseURL = "http://localhost:8099/"
Vue.prototype.$http = axios

Vue.prototype.$confirm = MessageBox.confirm
Vue.config.productionTip = false

// const routerPush = VueRouter.prototype.push
// VueRouter.prototype.push = function push(location) {
//   return routerPush.call(this, location).catch(error=> error)
// }


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
